package com.blb.entity;

/**
 * @author lvtian
 * @date 2023/1/3 10:48
 */
public class User {

    private Integer id;
    private String username;
    private String password;
    private String nickname;//真实姓名
    private String cellphone;
    private Integer type;//0为用户 1为管理员
    private Integer deptId;//部门编号

    private Department department;

    public User(Integer id, String username, String password, String nickname, String cellphone, Integer type, Integer deptId) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.cellphone = cellphone;
        this.type = type;
        this.deptId = deptId;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", type=" + type +
                ", deptId=" + deptId +
                '}';
    }
}
